package com.ryoma.service.impl;

import com.ryoma.mapper.development.StaffMapper;
import com.ryoma.model.Staff;
import com.ryoma.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "staffService")
public class StaffServiceImpl implements StaffService {

    @Autowired
    StaffMapper staffMapper;

    @Override
    public List<Staff> queryStaffList(Staff staff) {
        List<Staff> list = staffMapper.queryStaffList(staff);
        return list;
    }

    @Override
    public void insert(Staff staff) {
        staffMapper.insert(staff);
    }

    @Override
    public void update(Staff staff) {
        staffMapper.update(staff);
    }
}
